<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>景点详情</title>
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1" />
<link rel="stylesheet" href="{{ url('/common/mobile-common/common.css') }}">
<link rel="stylesheet" href="{{ url('/mobile/css/banner.css') }}">
<link rel="stylesheet" href="{{ url('/mobile/css/header.css') }}">
<link rel="stylesheet" href="{{ url('/mobile/css/scenery/scenery-detail.css') }}">	
<script src="{{ url('mobile/js/jquery-1.8.3.min.js') }}"></script>
<script src="{{ url('mobile/js/swiper/idangerous.swiper.min.js') }}"></script>
<script src="{{ url('/common/mobile-common/hmt.js') }}"></script>
</head>
<body>
	<div class="abouts">
		<div class="wrap-cont clearfix">
					<!--图片展示-->
					<div class="device">
					  	<div class="swiper-container clearfix">
						    <div class="swiper-wrapper clearfix">
								@if($one->pic_ids)
									<?php $arr = explode(',',$one->pic_ids);
									foreach($arr as $v) {
									$pic = DB::table('pictures')->where('id',$v)->select('img')->get();
									?>
						      	<div class="swiper-slide"> 
						      		<img src="{{ config('config.picHostPrefix').$pic[0]->img}}">
						      	</div>
									<?php }?>
								@endif
						    </div>
					  	</div>
						<div class="pagination1"></div>
					</div>
				</div>
					<!--景点信息-->
					<div class="wrap-cont jdxx">
						<div class="scener-info">
							<!--<ul>-->
							<p>
								<em><img src="{{ url('mobile/images/wz.png')}}"></em>
								<span>{{$one->address}}</span>
							</p>
							<p>
								<em><img src="{{ url('mobile/images/kfsj.png')}}"></em>
								<label>景区开放时间:</label>
								<span>{{$one->open_description}}</span>
							</p>
							<p>
								<em><img src="{{ url('mobile/images/zxdh.png')}}"></em>
								<label>咨询电话:</label>
								<span>{{$one->phone}}</span>
							</p>					
					</div>
					<div class="scener-js">
						<h3>景点介绍</h3>
						{!! html_entity_decode($one->content) !!}
					</div>
					@if($productId)
					<a href="{{url('wap/goods/detail/'.$productId)}}" class="now-dp">
						<div class="buy-now">
							立即订票
						</div>
					</a>
					@else
					<!--不能订票-->
					<a class="not-dp" style="display: block">
						<div class="buy-now">
							立即订票
						</div>
					</a>
					@endif
				</div>
				
		</div>
	</div>
	
</body>
<script>
			//图片展示
			var mySwiper = new Swiper('.swiper-container',{
				pagination: '.pagination1',
				loop:true,
				grabCursor: true,
				paginationClickable: true,
				autoplay:3000,
				speed:500,
			})
</script>
</html>
